package com.yanjingzheng.entity;

/**
 * @Author Yenchingcheng
 * @Date 2023/11/2 17:34
 * @Description 计算机配件展示类
 **/
public class ComputerPartDisplayVistor implements ComputerPartVistor{
    @Override
    public void visit(Mouse mouse) {
        System.out.println("Displaying mouse.");
    }

    @Override
    public void visit(Keyboard keyboard) {
        System.out.println("Displaying keyboard.");
    }

    @Override
    public void visit(Minitor minitor) {
        System.out.println("Displaying minitor.");
    }

    @Override
    public void visit(Computer computer) {
        System.out.println("Displaying computer.");
    }
}
